home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / MacStarter (THINK C 5.0⁄6.0) / inputBoxes.h < prev    next >
Text File  |  1992-10-10  |  801b  |  20 lines

  1. /* This header file defines some functions for using Mac dialog boxes.
  2.    See the README file that should be in the same folder with this file.
  3. */
  4.  
  5.  
  6. #include "stdio.h"  // for def of type FILE; used in inputBoxes.c anyway
  7.  
  8. void TellUser(const Str255 message);
  9.  
  10. short AskUser(const Str255 question, short* answeredYes);
  11. void AskUserWithoutCancel(const Str255 question, short* answeredYes);
  12.  
  13. short InputString(const Str255 prompt, Str255 str, const short maxLength);
  14. short InputWord(const Str255 prompt, Str255 str, const short maxLength);
  15. short InputLongInt(const Str255 prompt, long* n, const long min, const long max);
  16. short InputDouble(const Str255 prompt, double* x, const double min, const double max);
  17.  
  18. FILE* OpenOldFile(Str255 fileName);
  19. FILE* OpenNewFile(const Str255 prompt, Str255 fileName);
  20.